package com.zj.whichone.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.zj.whichone.bean.ReturnInfo;
import com.zj.whichone.bean.User;
import com.zj.whichone.service.UserService;

@Controller
@RequestMapping("/user")
public class UserController {
	@Autowired
	UserService userService;
	@RequestMapping(value = "/updatePassword",method=RequestMethod.GET)
	public void getUpdatePassword(){
	}
	@RequestMapping(value = "/updatePassword",method=RequestMethod.POST)
	public ReturnInfo updatePassword(User param){
		return userService.updatePassword(param);
	}
}
